package com.zhuang.designpattern.combination.model.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * description: 决策结果
 * date: 2022/9/17 10:06
 * author: Zhuang
 * version: 1.0
 */
@Data
@NoArgsConstructor
public class EngineResult {

    private boolean isSuccess; //执行结果
    private String userId;   //用户ID
    private Long treeId;     //规则树ID
    private Long nodeId;   //果实节点ID
    private String nodeValue;//果实节点值

    public EngineResult(String userId, Long treeId, Long treeNodeId, String nodeValue) {
        this.isSuccess = true;
        this.userId = userId;
        this.treeId = treeId;
        this.nodeId = nodeId;
        this.nodeValue = nodeValue;
    }
}
